package org.joa.examples.philosophers.generated;

import org.joa.actor.ActorName;
import org.joa.examples.philosophers.PhilosopherActor;
import org.joa.manager.ActorManager;

public class PhilosopherProxy {

    // Create a proxy for a new actor instance
    public static Philosopher create(ActorName owner) {
        return (Philosopher) ActorManager.instance.createActorProxy(
            owner,
            PhilosopherActor.class,
            Philosopher.class);
    }

    // Create a proxy for an existing actor instance
    public static Philosopher create(ActorName remote, ActorName owner) {
        return (Philosopher) ActorManager.instance.createActorProxy(
            remote,
            owner,
            Philosopher.class);
    }
}
